//导入request.js请求工具
import request from '@/utils/request.js'

export const setIsReadService = (contactUserId) => {
  return request({
    url: '/chatMessages/'+contactUserId,
    method: 'patch'
  })
}

export const getChatMessagesService = (contactUserId) => {
  return request({
    url: '/chatMessages/'+contactUserId,
    method: 'get'
  })
}

export const getTotalNoticeNumService = () => {
  return request({
    url: '/chatMessages/getTotalNoticeNum',
    method: 'get'
  })
}